<template>
  <!-- 必须有根标签 -->
  <div class="container">
    <p>{{ count }}</p>
    <button @click="count++">按钮</button>
    <Child />
    <Child></Child>
  </div>
</template>

<script>
import Child from "./views/Child";
// 默认暴露组件配置对象
export default {
  name: "App",
  data() {
    return {
      count: 0,
    };
  },
  components: {
    Child,
  },
};
</script>

<style lang="less">
.container {
  height: 200px;
  background: yellowgreen;
}
</style>